home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000232_misckit-reques…aska.et.byu.edu_Wed Jun 29 18:55:41 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  3KB

  1. Return-Path: <misckit-request@alaska.et.byu.edu>
  2. Received: from alaska.et.byu.edu by darth.byu.edu (NX5.67d/NX3.0M)
  3.     id AA02367; Wed, 29 Jun 94 18:55:31 -0600
  4. Received: from yvax1.byu.edu by alaska.et.byu.edu; Wed, 29 Jun 1994 12:23:39 -0600
  5. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-7 #7277)
  6.  id <01HE44IODMSG0Q7Y3J@yvax.byu.edu>; Wed, 29 Jun 1994 12:23:17 MDT
  7. Received: from netcomsv.netcom.com (uucp4.netcom.com)
  8.  by yvax.byu.edu (PMDF V4.3-7 #7277) id <01HE44IINOYO8ZGH6S@yvax.byu.edu>; Wed,
  9.  29 Jun 1994 12:23:10 MDT
  10. Received: from trwlasd.com by netcomsv.netcom.com with UUCP (8.6.4/SMI-4.1)
  11.  id LAA03946; Wed, 29 Jun 1994 11:13:11 -0700
  12. Received: from ewsdev14 by trwlasd.com with SMTP id AA00694 (5.65c/IDA-1.4.5)
  13.  ; Wed, 29 Jun 1994 11:00:16 -0700
  14. Received: by ewsdev14 (NX5.67d/NX3.0X) id AA01785; Wed, 29 Jun 94 11:00:15 -0700
  15. Received: by NeXT.Mailer (1.100)
  16. Received: by NeXT Mailer (1.100)
  17. Date: Wed, 29 Jun 1994 11:00:15 -0700
  18. From: Bruce McKenzie <bruce@trwlasd.com>
  19. Subject: Re: Math classes needed ?
  20. To: tuparev@EMBL-Heidelberg.de
  21. Cc: misckit@byu.edu
  22. Message-Id: <199406291800.AA00694@trwlasd.com>
  23. Content-Transfer-Encoding: 7BIT
  24.  
  25. > > I submitted a MiscRtMatrix to Don and he said he has to
  26. > write some math object > in the future. I might also need a
  27. > vector, complex or matrix class. What > about you. Any ideas ? >
  28. > > Any API suggestions ? Do we need a INT, REAL, etc. number ?
  29. > Maybe Class > Irational could return e, and pi :-) Well who
  30. > knows...
  31.  
  32. >NOOOOO! No Int, Real,Double, Complex,
  33. > WhatSoEverNumber classes, please. It should be possible to
  34. > find more intelligent and elegant way for solving this
  35. > problem (yes, it's much easier to write it in c++ or ADA, but
  36. > don't forget that Mathematica was written in plain C).
  37. >
  38.  
  39. I disagree. There are (I believe...) C++ libraries that solve this hierarchy design issue, and I'm sure that at least one SmallTalk implementation has the hierarchy set up.
  40.  
  41. These ought to be food for (design) thought.
  42.  
  43. I think that it is appropriate to have Int, Double, etc. classes. We just wrestled with the issue of getting a [perform:] to return a double. Look, just because you have the classes, you don't have to use them. Heck, I still use char* (SOMETIMES), even though MiscString is available.
  44.  
  45. I'm kind of surprised that NeXT did not add them in to the Foundation classes. Yes, they would have then had to floss their API again, but I can make an argument for it.
  46.  
  47. Bruce
  48. ---
  49. Bruce McKenzie (spuds@netcom.com, NeXTMail welcome)
  50. Vice President & Chief Scientist
  51. Atlas Software Ventures, Inc.
  52. PO Box 1299, Santa Clara, CA 95052-1299
  53. 800/278-9909 (ASV-9909)
  54. *** Software Development, specializing in NEXTSTEP ***
  55. ---